/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Server;

import Dal.DalBaiThi;
import Interface.BaiThi;
import java.rmi.RemoteException;
import java.sql.SQLException;

/**
 *
 * @author bj
 */
public class BaiThiImpl implements BaiThi{

    public int NopBai(String MaSV, String maDeThi,String ngayThi,Character[] dapAnChon) throws RemoteException,SQLException {
        int maBaiThi = DalBaiThi.TaoBaiThi(MaSV,maDeThi,ngayThi);
        
        DalBaiThi.TaoCauHoi_TraLoi(maBaiThi,maDeThi,dapAnChon);
        
        return maBaiThi;
    }

    public int XemKetQua(int maBaiThi, String maDeThi) throws RemoteException,SQLException {
        return DalBaiThi.XemKetQua(maBaiThi,maDeThi);
    }
    
}
